#ifndef _FILE_H_
#define _FILE_H_

#include "util/FSystem.h"

class CFile: public IFile
{
private:
	FILE* m_file;
	int m_size;

	CFile();
public:
	static CFile* Create(char* path, int flags);
	virtual ~CFile();

	virtual int GetSize() {return m_size;}
	virtual bool Read(void* data, int count);
	virtual bool Write(void* data, int count);

	void Seek(int pos);
};

#endif //_FILE_H_